package com.proyecto.track.service;

import java.util.ArrayList;
import java.util.List;

import com.opensymphony.xwork2.ActionSupport;
import com.proyecto.track.bo.UserType;
import com.proyecto.track.dao.UserTypeDAO;

public class UserTypeService extends ActionSupport{
	private static final long serialVersionUID = 1L;
	
	private UserTypeDAO userTypeDAO;
	private List<UserType> userTypes = new ArrayList<UserType>();
	
	public Long createUserType(UserType userType){
		return userTypeDAO.createUserType(userType);
	}
	//public Long deleteUserType(UserType userType);
	public List<UserType> searchUserType(){
		userTypes = userTypeDAO.searchUserType();
		return userTypes;
	}
	
	//public UserType searchUserType(Long id);

	public void setUserTypeDAO(UserTypeDAO userTypeDAO) {
		this.userTypeDAO = userTypeDAO;
	};


	
}
